package com.pay.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pay.entity.wx.WxUserInfo;
import com.pay.mapper.wx.WxUserInfoMapper;
import com.pay.service.WxUserInfoService;

@Service("wxUserInfoService")
public class WxUserInfoServiceImpl implements WxUserInfoService {

 	@Resource
	private WxUserInfoMapper wxUserInfoMapper;
	@Override
	public WxUserInfo findWxUserInfoByOpenId(String openId) {
		return wxUserInfoMapper.findWxUserInfoByOpenId(openId);
	}

	@Override
	public void updateWxUserInfo(WxUserInfo wxUserInfo) {
		wxUserInfoMapper.updateWxUserInfo(wxUserInfo);

	}
	@Override
	public void insertWxUserInfo(WxUserInfo wxUserInfo) {
		wxUserInfoMapper.insertWxUserInfo(wxUserInfo);
	}

	@Override
	public void comeWxUserInfoBatch(List<Object> openids) {
		wxUserInfoMapper.comeWxUserInfoBatch(openids);
	}

	@Override
	public List<WxUserInfo> findWxUserInfos(int page) {
		return wxUserInfoMapper.findWxUserInfos(page);
	}

	
	
}
